package top.cptr.so.aliyundomainserver.config;


import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import top.cptr.so.aliyundomainserver.aliyunSDKUtils.AccessKeysConfig;
import top.cptr.so.aliyundomainserver.aliyunSDKUtils.ClientBeanFactory;

@Configuration
@EnableConfigurationProperties(AccessKeysConfig.class)
public class AliyunConfig {

    /**
     * 配置clientBeanFactory
     * @param accessKeysConfig 配置文件
     * @return
     */
    @Bean
    public ClientBeanFactory clientBeanFactory(AccessKeysConfig accessKeysConfig){
        return new ClientBeanFactory(accessKeysConfig);
    }
}
